package com.yuye.cloud.common.model.base;

import org.springframework.beans.BeanUtils;

import java.io.Serializable;

public class BaseModel implements Serializable{

	
	
	/**
	 * serialVersionUID 自定义
	 */
	private static final long serialVersionUID = -838489648601681855L;

	public <T> T  toDTO(T t){
		BeanUtils.copyProperties(this, t);
		return t;
	}
}
